package com.lungle.warmdiary.app.view;

import com.lungle.warmdiary.R;
import com.lungle.warmdiary.app.view.active.fragment.ActivePagerFragment;
import com.lungle.warmdiary.app.view.invite.fragment.RecommendFragment;
import com.lungle.warmdiary.app.view.me.fragment.UserCenterFragment;
import com.lungle.warmdiary.app.view.testcampaign.fragment.CampaignListPagerFragment;

public enum MainTab {

    TESTCAMPAIN(0, R.string.tab_name_campaign, R.drawable.tab_icon_campaign,
            CampaignListPagerFragment.class),

    ACTIVE(1, R.string.tab_name_active, R.drawable.tab_icon_active,
            ActivePagerFragment.class),

    INVEST(2, R.string.tab_name_invest, R.drawable.tab_icon_invest, RecommendFragment.class),

    ME(3, R.string.tab_name_me, R.drawable.tab_icon_me, UserCenterFragment.class);

    private int idx;
    private int resName;
    private int resIcon;
    private Class<?> clz;

    private MainTab(int idx, int resName, int resIcon, Class<?> clz) {
        this.idx = idx;
        this.resName = resName;
        this.resIcon = resIcon;
        this.clz = clz;
    }

    public int getIdx() {
        return idx;
    }

    public void setIdx(int idx) {
        this.idx = idx;
    }

    public int getResName() {
        return resName;
    }

    public void setResName(int resName) {
        this.resName = resName;
    }

    public int getResIcon() {
        return resIcon;
    }

    public void setResIcon(int resIcon) {
        this.resIcon = resIcon;
    }

    public Class<?> getClz() {
        return clz;
    }

    public void setClz(Class<?> clz) {
        this.clz = clz;
    }
}
